<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
if($_RQ['op']=='list'){
	$pindex = max(1, intval($postdata['page']));
	$psize = 15;
	$params=array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']);
	
    $orderby='time desc';
	$total='';
	$return['list']=pdo_getslice('jy_cmslive_dy',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	foreach($return['list'] as &$v){
		$r=pdo_get('jy_cmslive_list',array('id'=>$v['rid']));
		if(strtotime($r['time']) < TIMESTAMP){
			$v['living']=1;
		}else{
			$v['living']=0;
		}
		$v['image']=$r['image'];
		$v['title']=$r['title'];
		$v['time']=$r['time'];
		$v['readnum']=pdo_count('jy_cmslive_dy',array('rid'=>$v['rid']));
	}
	exi($return);
}

?>